cmake_minimum_required(VERSION 3.6)
project(firstNode)

set(CMAKE_MODULE_PATH /mnt/data/maya_develop/modules)

find_package(Maya REQUIRED)

INCLUDE_DIRECTORIES(${MAYA_INCLUDE_DIR})
LINK_LIBRARIES(${MAYA_LIBRARIES_DIR})


set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

set(SOURCE_FILES
        firstNode.cpp
        firstNode.h pluginMain.cpp firstNodeCmd.h firstNodeCmd.cpp)
add_library(${PROJECT_NAME} SHARED ${SOURCE_FILES})


target_link_libraries(${PROJECT_NAME} ${MAYA_LIBRARIES})
target_include_directories(${PROJECT_NAME} PRIVATE Maya::Maya)

MAYA_PLUGIN(firstNode)